//
//  NewsViewController.m
//  PCNews
//
//  Created by PengchengWang on 16/3/1.
//  Copyright © 2016年 pengchengWang. All rights reserved.
//

#import "NewsViewController.h"
#import "NewestViewController.h"
#import "HearwareViewController.h"
#import "SoftwareViewController.h"
#import "PhoneViewController.h"
#import "ScienceViewController.h"

@interface NewsViewController ()

@end

@implementation NewsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setViews];
    
    // Do any additional setup after loading the view.
}

-(void)setViews{
    self.navigationItem.titleView =[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"mydriverslogo"]] ;
}

-(instancetype)init{
    if (self = [super init]) {
        self.titles = @[@"最新",@"硬件",@"软件",@"手机",@"科技"];
        self.viewControllerClasses = [NSMutableArray arrayWithCapacity:self.titles.count];
        self.viewControllerClasses = @[[NewestViewController class],[HearwareViewController class],[SoftwareViewController class],[PhoneViewController class],[ScienceViewController class]];
        self.menuItemWidth = kScreenWidth / 5;
        self.menuViewStyle = WMMenuViewStyleLine;
        self.menuBGColor = [UIColor lightGrayColor];
        self.titleColorSelected = [UIColor orangeColor];
    }
    return self;
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
 #pragma mark - Navigation
 
 // In a storyboard-based application, you will often want to do a little preparation before navigation
 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
 // Get the new view controller using [segue destinationViewController].
 // Pass the selected object to the new view controller.
 }
 */

@end
